package com.mew.slots.core.game.sgj.roller;


import com.mew.slots.core.common.roller.xml.BaseXml;

public class SgjXml extends BaseXml {

    private static SgjXml instance;

    private SgjXml(){}

    static {
        instance = new SgjXml();
    }

    public static SgjXml getInstance(){
        return instance;
    }

    @Override
    public void initPathsRowCol() throws Exception{
        //路径
        this.getPaths().add("external/roller/sgj/sgj_roller.xml");
        this.getPaths().add("external/roller/sgj/sgj_charge_roller.xml");
        //3行5列
        this.setRow(3);
        this.setCol(5);
    }

    @Override
    public int parseInt(String str) {
        if (str.equals("U")){
            return 8;
        }else if (str.equals("W")){
            return 9;
        }else if (str.equals("S")){
            return 10;
        }
        return 0;
    }

}
